<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>订单列表</h2>
    </div>
    <div class="cf">
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
            <form action="/Admin/Usermember/index" id="form1" method="get">
                <div class="sleft">
                    <!--<input type="text" name="typeid" class="search-input" value="" placeholder="文件分类">-->
                    <select class="search-input" name="user_type">
                        <option value="">请选择分组</option>
                        <volist name="userfz" id="typelist">
                            <option value="{$typelist.id}" <?php if($_GET['user_type']==$typelist[id]){echo 'selected';} ?>>{$typelist.title}</option>
                        </volist>
                    </select>
                    <input type="text" name="title" class="search-input" value="{$get[title]}" placeholder="标题">
                    <a class="sch-btn" href="javascript:;" id="search" ><i class="btn-search"></i></a>
                </div>
            </form>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected" ><input class="check-all" type="checkbox"/></th>
                <th class="" >编号</th>
                <th class="" >订单编号</th>
                <th class="" >商家名称</th>
                <th class="" >商品名称</th>
                <th class="" >规格</th>
                <th class="" >商品数量</th>
                <th class="" >订单总价</th>
                <th class="" >运费类型</th>
                <th class="" >收货地址</th>
                <th class="" >下单时间</th>
                <th class="" >支付时间</th>
                <th class="" >发货时间</th>
                <th class="" >订单状态</th>
                <th class="" >操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td>{$vo.id} </td>
                        <td>{$vo.order_sn}</td>
                        <td>{$vo.shop_name}</td>
                        <td>{$vo.goods_name}</td>
                        <td>{$vo.size}</td>
                        <td>{$vo.goods_num}</td>
                        <td>{$vo.order_price}</td>
                        <td>{$vo.freight_type}</td>
                        <td>{$vo.address}</td>
                        <td>{$vo.create_time}</td>
                        <td>{$vo.pay_time}</td>
                        <td>{$vo.delivery_time}</td>
                        <td>{$vo.status}</td>
                        <td>{$vo.status}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script src="__STATIC__/layer/layer.js"></script>

    <script type="text/javascript">
        //搜索功能
        $("#search").click(function(){
            $("#form1").submit();
        });
        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        highlight_subnav('{:U('Order/index')}');
    </script>
</block>
